package com.dh.controller;

import com.dh.core.common.Result;
import com.dh.dao.bo.EncryBO;
import com.dh.service.UserLoginService;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@RestController
@RequestMapping("/wx")
public class WxController {
    @Resource
    private UserLoginService userLoginService;

    @PostMapping("/login")
    public Result login(@RequestBody EncryBO encryBO){
       return userLoginService.login(encryBO);
    }
    @PostMapping("/testGetToken")
    private Result getToken(@RequestHeader("token") String token){
        return Result.success(token);
    }
    @PostMapping("/test")
    public Result test(){
        System.out.println("访问");
        return Result.success("success");
    }

}
